package com.qin.mall.openfeign.order;

import com.qin.mall.common.api.CommonResult;
import com.qin.mall.domain.OmsOrderSetting;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author Leisure
 * create 2022 2022/11/22 8:54
 **/
@FeignClient("order-manage")
public interface OmsOrderSettingFeigin {

    /**
     * 获取指定订单设置
     */
    @GetMapping("/orderSet/{id}")
    public CommonResult<OmsOrderSetting> orderSetting(@PathVariable Long id);

    /**
     * 修改指定订单设置
     */
    @PostMapping("/orderSet/update/{id}")
    public CommonResult update(@PathVariable Long id,
                         @RequestBody OmsOrderSetting orderSetting);
}
